//
//  ByNoticeThreeLabelView.m
//  caipiao_ios
//
//  Created by mc on 2018/8/9.
//  Copyright © 2018年 ZhangZhanbin. All rights reserved.
//

#import "ByNoticeThreeLabelView.h"

@implementation ByNoticeThreeLabelView

- (id)init{
    self = [super init];
    if (self) {
    
        UILabel *titleLabel = [[UILabel alloc] init];
        [self addSubview:titleLabel];
        [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(0);
            make.top.equalTo(self).offset(0);
            make.right.equalTo(self).offset(0);
            make.height.mas_equalTo(@15);
        }];
        titleLabel.textColor = [UIColor lightGrayColor];
        titleLabel.font = FONT(12);
        titleLabel.text = @"奖项";
        
        UILabel *valueLabel = [[UILabel alloc] init];
        [self addSubview:valueLabel];
        [valueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(0);
            make.top.equalTo(titleLabel.mas_bottom).offset(5);
            make.right.equalTo(self).offset(0);
            make.height.mas_equalTo(@15);
        }];
        valueLabel.font = FONT(12);
        valueLabel.textColor = [UIColor blackColor];
        valueLabel.text = @"一等奖";
        
        UILabel *otherValueLabel = [[UILabel alloc] init];
        [self addSubview:otherValueLabel];
        [otherValueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(0);
            make.top.equalTo(valueLabel.mas_bottom).offset(5);
            make.right.equalTo(self).offset(0);
            make.height.mas_equalTo(@15);
        }];
        otherValueLabel.font = FONT(12);
        otherValueLabel.textColor = [UIColor blackColor];
        otherValueLabel.text = @"二等奖";
        
        self.titleLabel = titleLabel;
        self.valueLabel = valueLabel;
        self.otherValueLabel = otherValueLabel;
        
        
    }
    return self;
}

@end
